package cn.sf.sufinguserconsumer.fallback;

import cn.sf.pojo.User;
import cn.sf.sufinguserconsumer.service.QueryUserService;
import org.springframework.stereotype.Service;

@Service
public class QueryUserServiceFallback implements QueryUserService {

    //登录
    @Override
    public User queryUser(String userName, String userPassword) {
        System.out.println("用户登录出错");
        return null;
    }

    @Override
    public User queryUserEmail(String userEmail, String userPassword) {
        System.out.println("邮箱登录出错");
        return null;
    }

    @Override
    public User queryId(long userId) {
        System.out.println("查询id出错");
        return null;
    }

    //注册
    @Override
    public int userAdd(User user) {
        System.out.println("注册出错");
        return 0;
    }

}


